package com.开闭原则01;

public class JavaDisCourse extends JavaCourse {

    public JavaDisCourse(Integer id, String name, Double price) {
        super(id, name, price);
    }


    public Double getDisPrice() {
        return super.getPrice() * 0.6;
    }
}
